﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Menu : MonoBehaviour {

	Button Continue;
	Button Back;

	void Start () {
	
		Continue = transform.Find("/Canvas/Button-1").GetComponent<Button>();
		EventTriggerListener.Get(Continue.gameObject).onClick = Onjixu;
		Back = transform.Find("/Canvas/Button-2").GetComponent<Button>();
		EventTriggerListener.Get(Back.gameObject).onClick = Onbackmenu;
	}
	

	void Update () {
	
	}

	private void Onjixu(GameObject go)
	{
		LoadScene.name = "Scene-1";
		Application.LoadLevel("Load");
	}

	private void Onbackmenu(GameObject go)
	{
		LoadScene.name = "GuanQia";
		Application.LoadLevel("Load");
	}
}
